package com.maimao.model.order;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.experimental.Accessors;
import org.springframework.data.annotation.Id;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 秒杀成功的记录 仅用于判断是否秒杀过
 *
 * @author MaoLin Wang
 * @date 2021/4/17 4:59 下午
 */
@TableName("mm_kill_success")
@Data
@Accessors(chain = true)
public class KillSuccess implements Serializable {


    @TableId(type = IdType.AUTO)
    private Long id;

    @TableField("kill_id")
    private Long killId;

    @TableId("user_id")
    private Long userId;

    @TableField("create_time")
    private LocalDateTime createTime;
}
